package cn.iocoder.yudao.module.pm.controller.admin.qcrecords.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 过程管理-速冷处理记录新增/修改 Request VO")
@Data
public class QcRecordsSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "3710")
    private Long id;

    @Schema(description = "批次号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "批次号不能为空")
    private String batchCode;

    @Schema(description = "食品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @NotEmpty(message = "食品名称不能为空")
    private String foodName;

    @Schema(description = "速冷开始时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "速冷开始时间不能为空")
    private LocalDateTime startTime;

    @Schema(description = "速冷结束时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "速冷结束时间不能为空")
    private LocalDateTime endTime;

    @Schema(description = "结束中心温度", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "结束中心温度不能为空")
    private String centerTemp;

    @Schema(description = "食品开始温度", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "食品开始温度不能为空")
    private String initTemp;

    @Schema(description = "食品结束温度", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "食品结束温度不能为空")
    private String finalTemp;

}